package com.code.sslsocket;

import javax.net.SocketFactory;
import javax.net.ssl.SSLSocketFactory;
import java.net.Socket;

/**
 * @description:
 * @className: SslSocketTest
 * @package: com.code.sslsocket
 * @author: yangzhi@hsyuntai.com
 * @date: 2019/10/17 18:40
 * @copyright: 版权归 HSYUNTAI 所有
 */
public class SslSocketTest {

    public static void main(String[] args) {
        try {
            SocketFactory factory = SSLSocketFactory.getDefault();
            Socket socket = factory.createSocket("www.qq.com", 80);
        } catch (Exception e) {
            e.printStackTrace();
        }

    }
}
